Skip to content

Document Number::parseFloat() returning null on failure#8250

Merged
ADmad merged 1 commit into5.nextfrom
docs-parsefloat-null
Mar 23, 2026
Merged

Document Number::parseFloat() returning null on failure#8250
ADmad merged 1 commit into5.nextfrom
docs-parsefloat-null

Conversation

@dereuromark
Copy link
Copy Markdown
Member

Summary

Document the behavior change where Number::parseFloat() now returns null instead of 0.0 when parsing fails.

This also affects FloatType and DecimalType database types.

Refs cakephp/cakephp#19347

@dereuromark dereuromark added this to the 5.next milestone Mar 17, 2026
@dereuromark dereuromark marked this pull request as ready for review March 23, 2026 07:08
@ADmad ADmad merged commit 32d1074 into 5.next Mar 23, 2026
5 checks passed
@ADmad ADmad deleted the docs-parsefloat-null branch March 23, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants